go/scanner.Scanner.error (method)
22 uses
go/scanner (current package)
scanner.go#L69: s.error(s.offset, "illegal character NUL")
scanner.go#L80: s.error(s.offset, "illegal UTF-8 encoding (got UTF-16)")
scanner.go#L83: s.error(s.offset, "illegal UTF-8 encoding")
scanner.go#L86: s.error(s.offset, "illegal byte order mark")
scanner.go#L157: func (s *Scanner) error(offs int, msg string) {
scanner.go#L165: s.error(offs, fmt.Sprintf(format, args...))
scanner.go#L213: s.error(offs, "comment not terminated")
scanner.go#L262: s.error(offs+i, "invalid line number: "+string(text[i:]))
scanner.go#L277: s.error(offs+i2, "invalid column number: "+string(text[i2:]))
scanner.go#L287: s.error(offs+i, "invalid line number: "+string(text[i:]))
scanner.go#L459: s.error(s.offset, "invalid radix point in "+litname(prefix))
scanner.go#L466: s.error(s.offset, litname(prefix)+" has no digits")
scanner.go#L485: s.error(s.offset, "exponent has no digits")
scanner.go#L488: s.error(s.offset, "hexadecimal mantissa requires a 'p' exponent")
scanner.go#L503: s.error(offs+i, "'_' must separate successive digits")
scanner.go#L591: s.error(offs, msg)
scanner.go#L603: s.error(s.offset, msg)
scanner.go#L612: s.error(offs, "escape sequence is invalid Unicode code point")
scanner.go#L630: s.error(offs, "rune literal not terminated")
scanner.go#L649: s.error(offs, "illegal rune literal")
scanner.go#L662: s.error(offs, "string literal not terminated")
scanner.go#L702: s.error(offs, "raw string literal not terminated")